package kmn.udpservice.data;

import java.io.Serializable;

public class Chauffage extends ItemData implements Serializable
{
	private float temperature;
	private float temperatureMax;
	private float temperatureMin;
	
	public Chauffage()
	{
		super();
		temperature = 0;
		temperatureMax = 0;
		temperatureMin = 0;
	}
	
	public Chauffage(String id, int etat, float temperature)
	{
		super("Chauffage", id, etat);
		this.temperature = temperature;
		temperatureMax = 0;
		temperatureMin = 0;
	}

	public float getTemperature() 
	{
		return temperature;
	}

	public void setTemperature(float temperature) 
	{
		if (!(temperature > temperatureMax) || (temperature < temperatureMin))
		{
			this.temperature = temperature;
		}
	}

	public float getTemperatureMax() 
	{
		return temperatureMax;
	}

	public void setTemperatureMax(float temperatureMax) 
	{
		this.temperatureMax = temperatureMax;
	}

	public float getTemperatureMin() 
	{
		return temperatureMin;
	}

	public void setTemperatureMin(float temperatureMin) 
	{
		this.temperatureMin = temperatureMin;
	}
	
}
